package com.hxzy.shop.dto.commodity.req;

import com.hxzy.shop.dto.commodity.resp.SubcategoryResp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author hu-yf
 * @createTime 2022/4/6 14:15
 * @description 中台分类更新接受类
 */
@Data
public class RenewAdminClassifiedManagementReq implements Serializable {

    @ApiModelProperty("分类管理表id")
    private Long id;

    @ApiModelProperty("分类名称")
    @NotNull(message = "分类名称不能为空")
    private String classificationName;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("分类描述")
    @NotNull(message = "分类名称不能为空")
    private String classificationDescription;

     // @ApiModelProperty("子分类")
     // @NotEmpty(message = "子分类不能为空！")
    //private List<SubcategoryResp> subcategory;

}
